﻿@model Infinity.Models.Instructor_Salary

@{
    ViewBag.Title = "Edit";
    Layout = "~/Areas/Managerial/Views/Shared/_AdminLayout.cshtml";
}

<h2>Edit</h2>

@using (Html.BeginForm()) {
    @Html.AntiForgeryToken()
    @Html.ValidationSummary(true)

    <fieldset>
        <legend>Instructor Salary</legend>
        <span class="input input--jiro">
                <label class="" for="input-10" style="color:gray">
                    <span class="input__label-content input__label-content--jiro">
                        &nbsp;&nbsp; @Html.HiddenFor(model => model.Salary_Id)
                        Payment ID
                        &nbsp;&nbsp;&nbsp;
                        @Model.Salary_Id
                    </span>
                </label>
            </span>
            <br />
         <span class="input input--jiro">
                <input class="input__field input__field--jiro" type="text" value="@Model.SalaryType" name="SalaryType" id="SalaryType" />
                <label class="input__label input__label--jiro " for="input-10">
                    <span class="input__label-content input__label-content--jiro">
                        Salary Type
                        <span class="star">@Html.ValidationMessageFor(model => model.SalaryType,"*")</span>
                    </span>
                </label>
            </span>
         <br />
         <span class="input input--jiro">
                <input class="input__field input__field--jiro" type="text" value="@Model.SalaryValue" name="SalaryValue" id="SalaryValue" />
                <label class="input__label input__label--jiro " for="input-10">
                    <span class="input__label-content input__label-content--jiro">
                        Salary Value
                        <span class="star">@Html.ValidationMessageFor(model => model.SalaryValue,"*")</span>
                    </span>
                </label>
            </span>
         <br />

       
         <p>

            @Html.ValidationSummary(false,"Please fix the errors then submit ")
        </p>

       
        <div>
    <table>
  <tr>
      <td>@Html.ActionLink("Delete", "Delete", new { id = Model.Salary_Id }, new {@class="send"})</td>
      <td>&nbsp;&nbsp;<a href="@Url.Action("Index", "PaymetMethod")" class="send">BacK to list</a></td>

      <td>&nbsp;&nbsp;<a href="@Url.Action("Create", "PaymetMethod")" class="send">Create New Payment Method</a></td>
      <td> &nbsp;&nbsp;<input type="submit"  value="Save" class="send" /></td>

  </tr> 
</table>
</div>

    </fieldset>
}

